package cn.com.chengmandian.service.iot.constants;

public enum BmsUpdateStatusEnum {
    READY(1, "待升级"),
    RUNNING(2, "升级中"),
    SUCCESS(3, "升级成功"),
    FAIL(4, "升级失败"),
    TIMEOUT(5, "升级超时"),
    CANCEL(6, "升级取消");


    private Integer code;
    private String name;

    BmsUpdateStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
